package bll

import (
	"jgt-oper/src/model"
	"jgt-oper/src/schema"
)

// FrequentlyVisitor 常用访客
type FrequentlyVisitor struct {
	FVModel model.IFrequentlyVisitor `inject:"IFrequentlyVisitor"`
}

//
//func (a *FrequentlyVisitor)Create(item *schema.FrequentlyVisitor) error {
//	return a.FVModel.Create(item)
//}

// Update 更新
func (a *FrequentlyVisitor) Update(userID string, info map[string]interface{}) error {
	return a.FVModel.Update(userID, info)
}

// Insert 插入数据条目
func (a *FrequentlyVisitor) Insert(userID string, fv *schema.FrequentlyItem) error {
	return a.FVModel.Insert(userID, fv)
}

// Get 查询
func (a *FrequentlyVisitor) Get(userID string) (*schema.FrequentlyVisitor, error) {
	return a.FVModel.Get(userID)
}
